﻿<UserControl x:Class="SGGWElevator.ElevatorControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:c="clr-namespace:SGGWElevator"
             mc:Ignorable="d" Width="250"
             >
    <StackPanel Orientation="Vertical">        
        <c:ElevatorInfoPanel x:Name="InfoPanel" Margin="60 5 0 5"/>
        <DockPanel>
            <Grid x:Name="FloorCallers" Width="60" DockPanel.Dock="Left">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <c:ElevatorCaller x:Name="ThirdFloorCaller" Grid.Row="0" HorizontalAlignment="Left" CallersFloor="Three"/>
                <c:ElevatorCaller x:Name="SecondFloorCaller" Grid.Row="1" HorizontalAlignment="Left" CallersFloor="Two"/>
                <c:ElevatorCaller x:Name="FirstFloorCaller" Grid.Row="2" HorizontalAlignment="Left" CallersFloor="One"/>
                <c:ElevatorCaller x:Name="LobbyFloorCaller" Grid.Row="3" HorizontalAlignment="Left" CallersFloor="Lobby"/>
                <c:ElevatorCaller x:Name="MinusOneFloorCaller" Grid.Row="4" HorizontalAlignment="Left" CallersFloor="MinusOne"/>
            </Grid>
            <c:ElevatorCabinControl x:Name="ElevCabin"/>
        </DockPanel>
        <c:FloorButtonsPanel x:Name="FloorButtons" Margin="2" />
        <c:ElevatorDoorPanel x:Name="DoorPanel" Margin="2" />
        <c:ElevatorStatusLabel x:Name="StatusLabel" Margin="2" />
    </StackPanel>
</UserControl>
